package nc.ui.arap.service;

import java.util.List;
import java.util.Map;

import nc.ui.ep.dj.DjPanel;
import nc.ui.pub.ClientEnvironment;
import nc.vo.arap.service.ServiceVO;
import nc.vo.pub.BusinessException;

public class DjlxbmPowerCall extends AbstractCall{
 
	
	public DjlxbmPowerCall(DjPanel djp ) {
		super( djp);
	}

	public ServiceVO getServcallVO() {
		callvo=new ServiceVO();
		callvo.setClassname("nc.itf.arap.prv.IArapBillTypePrivate");
		callvo.setMethodname("getBilltypePower");
		callvo.setParamtype(new Class[] {String.class,String.class});
		callvo.setParam(new Object[] {ClientEnvironment.getInstance().getUser().getPrimaryKey(),parent.getDjSettingParam().getPk_corp()});
		return callvo;
	}

	public void handleResult(Map<String, Object> datas)throws BusinessException {
		parent.setPowerBilltypeList((List<String>) datas.get(callvo.getCode()));
	}
}
